package com.witdata.mysql.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 课程题单表 实体类。
 *
 * @author admin
 * @since 2025-05-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("t_course_subjects")
public class TCourseSubjects implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程题单ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 题单ID
     */
    private Long subjectId;

    /**
     * 模式：考试0，作业1
     */
    private Integer type;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 状态：未启用0，已启用1
     */
    private Boolean status;

}
